home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.1 (Developer) [x86] / NeXT Step 3.1 Intel dev.cdr.dmg / NextDeveloper / Headers / driverkit / IONetwork.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-17  |  924 b   |  56 lines

  1. /*
  2.  * Copyright (c) 1992 NeXT Computer, Inc.
  3.  *
  4.  * Network interface class.
  5.  *
  6.  * HISTORY
  7.  *
  8.  * 10 December 1992 David E. Bohman at NeXT
  9.  *    Created.
  10.  */
  11.  
  12. #ifdef    KERNEL
  13.  
  14. #import <objc/Object.h>
  15. #import <bsd/net/netif.h>
  16.  
  17. @interface IONetwork:Object
  18. {
  19. @private
  20.     netif_t    _netif;
  21. }
  22.  
  23. - initForNetworkDevice:device
  24.         name:(const char *)name
  25.         unit:(unsigned int)unit
  26.         type:(const char *)type
  27.         maxTransferUnit:(unsigned int)mtu
  28.         flags:(unsigned int)flags;
  29.  
  30. - (int)handleInputPacket:(netbuf_t)pkt
  31.         extra:(void *)extra;
  32.  
  33. - (void)incrementInputPackets;
  34. - (void)incrementOutputPackets;
  35. - (void)incrementInputErrors;
  36. - (void)incrementOutputErrors;
  37. - (void)incrementCollisions;
  38.  
  39. @end
  40.  
  41. @protocol IONetworkDeviceMethods
  42.  
  43. - (int)finishInitialization;
  44.  
  45. - (int)outputPacket:(netbuf_t)pkt
  46.         address:(void *)addrs;
  47.  
  48. - (netbuf_t)allocateNetbuf;
  49.  
  50. - (int)performCommand:(const char *)command
  51.         data:(void *)data;
  52.  
  53. @end
  54.  
  55. #endif    KERNEL
  56.